/**
 * ClassName:HospitalServiceImpl
 */
package com.mvc.service.xt.impl;

import java.util.List;
import java.util.Map;

import org.huangqj.consant.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.xt.Hospital;
import com.mvc.service.xt.HospitalService;
/**
 * 医院信息接口实现类
 * @author qingjie
 * Date：2015-09-17 0：43am
 */
@Service
public class HospitalServiceImpl implements HospitalService {
	
	@Autowired
	private BaseDaoI<Hospital> hBaseDaoI;

	@Override
	public List<Hospital> findHospitals(Hospital hospital) {
		Map<String, Object> params = StringUtils.beanToMap(hospital);
		return hBaseDaoI.find(StringUtils.getHql("Hospital", params, ""), params);
	}

	
}
